<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
	Smarty function to get page url and add sort order dynamically.
	author=Giridhar Borke
 */
function smarty_function_errormessage($err_id, &$smarty)
{

   if($err_id['err_id']!="")
    {
        $query = "select * from errorlog where id='".$err_id['err_id']."'";
        $run = @mysql_query($query);
        $row = @mysql_fetch_assoc($run);
    }
    return $err_message = '<div align="center" class="errorDiv" id="error"><span>'.$row['message'].'</span></div>';;
   	
}

/* vim: set expandtab: */

?>
